System and method for automating document generation

ABSTRACT

A system and a method for generating a document and maintaining the integrity of the document includes compiling a superset of data into a data heap from multiple data sources, where the data heap corresponds to a start date and one or more clients. The system generates the document using content elements, which are created using the compiled data, and embeds the content elements into the document. The document then is accessible through an associated software application. The data heap is saved and attached to the document. When the document is modified or edited in any manner, the system automatically saves the modified document as a new version. Additionally, the data heap is synchronized to the associated document and, therefore, is regenerated and saved as a new version along with the modified document.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to a system and a method for generating computer-accessible documents from a plurality of data sources and maintaining the integrity of the documents.

2. Related Art

It is common when generating a business document, such as a text file or presentation slides, to draft, review, and revise the document multiple times before a final document is produced. Often, such a document includes data imported from multiple sources and multiple applications external to the document. Typically, the importation of data into a document is performed manually, once a user has located the relevant data. Generating a document that requires a large volume of data to be imported, such as, for example, presentation slides in which data from multiple sources are compiled, can take weeks, sometimes even months, to produce depending on the size of the document.

Additionally, because a document often is edited and revised multiple times before a final document is produced, changes between each version of the document are lost when a new version is not created for each time the document is modified. If multiple users have access to the document, maintaining the integrity of the document becomes increasingly difficult. Accordingly, a need exists for an improved way of automating the creation of documents that utilize external or imported data, and for an improved means of maintaining the integrity of such documents in order to reduce the time and human error often associated with documents made through the collaborative efforts of multiple users.

SUMMARY OF INVENTION

The present invention provides a system and a method that compiles and assembles data from multiple sources and generates documents using structured elements that incorporate the compiled data. Maintenance of each generated document is controlled by the system through automatic “versioning” or version creation for modifications made to the generated document. By automating the compilation of relevant data for a document and maintaining each document's integrity through automatic versioning, the time and human error associated with generating documents using data from multiple data sources are reduced significantly.

According to the invention, the system includes a content building application, referred to herein as a content builder, multiple application program interfaces (APIs) to interface with multiple data sources, a catalog of predefined structured elements or content elements, and a data map. The system also includes sets of instructions and templates for generating different types of documents using the content builder, such as, for example, slides for a PowerPoint™ presentation, or a portable document format (PDF) document. A content element is a collection of data structured into a type of display that is embedded into the document by the content builder. The content elements may be grouped into categories, such as, for example, corporate financial data, risk exposure data, and credit profitability data. Each content element includes a data type, such as, for example, a chart or a graph, and data gathered from a compilation or superset of data retrieved by the system from multiple data sources, referred to herein as a data heap. Each content element also includes instructions for locating and retrieving the associated data from within a data heap generated by the system, and instructions for formatting and presenting the content element within the document.

As mentioned above, a data heap is a collection of data retrieved by the system from multiple data sources. When the system is generating a document, the data heap is maintained in a temporary memory that is accessible by the content builder. The data heap is created using a hierarchical structure, similar to structures associated with an extensible markup language (XML) document. Once the content builder has generated the document, the system may save the associated data heap, for example, as an XML document, and attaches the saved data heap file to the generated document. The system also includes a user interface, such as an Internet Web page.

The content builder uses a data map to retrieve data from multiple data sources. The data map includes the locations of the data from the multiple data sources and instructions for generating a data heap. The data map also assists in creating a content element because the data map contains the layout of the data within the data heap. Thus, the content builder accesses the data map to determine where data relevant to each content element is located within the data heap.

According to an embodiment of the present invention, a computer-readable storage medium storing computer code for implementing the method of generating and maintaining a document, described herein, is provided.

According to an embodiment of the present invention, a method for generating a document and maintaining the integrity of the document is provided. The method includes steps for a user accessing a system according to the present invention via a user interface, such as, for example, a Web page. The user is prompted to select a type of document to be created and to input a beginning date or start date for the system to retrieve data. The user also is prompted to input one or more clients, for example, by name, by category, or by group, in order for the system to retrieve data associated with the clients.

Upon receiving the user inputs, the system queries multiple data sources from within the user's organization or external to the user's organization for all data corresponding to the inputted clients and generated no earlier than the start date inputted by the user. To locate the data, the system uses a data map to retrieve the pertinent data from the corresponding data sources. The system then generates a data heap, which is a superset of all the data corresponding to the inputted start date and clients. The system formats the data heap using a hierarchical structure, with the inputted start date serving as a root node or element and the inputted clients following as child nodes descending from the root node (the inputted start date). Descending from each client are attribute nodes containing associated business data. Each attribute may have a name, a value, a data source identifier, a date and time stamp corresponding to the date and time the system retrieved the data, and one or more flags characterizing the data associated with each attribute.

The system then outputs a list of content elements to the user. The user selects which content elements are to be present in the generated document. Because each content element is, in essence, a data graphic file, the user may instruct the system to generate a document with “built in” or embedded graphics, such as, for example, spreadsheets, tables, charts, and other pictorial and/or graphical presentations of data. Since each content element is created using data retrieved from multiple data sources, the content builder replaces the typical process of manually searching for and retrieving data from multiple data sources, and then manually creating spreadsheets, tables, charts, and other presentations of the data.

The system receives the selected content elements and generates or builds the document using the content builder. For each selected content element, the content builder references the data map to locate the relevant data. The content builder then creates each selected content element according to the instructions associated with each content element. The system then generates the document according to the stored predefined templates and embeds the selected content elements.

The system saves the generated document and outputs it to the user according to user-inputted instructions. Additionally, the system saves the data heap associated with the document, preferably as an XML document, and attaches it to the document. In doing so, the system provides a “snapshot” of all the possible data provided to the user at the time the document was created. The user then may access the document through an applicable business, commercial, or other application in order to add, remove, or modify unstructured content, such as, for example, the text or the page layout of the document. Once the user has modified the document, the system automatically saves the document as a new version. Thus, the integrity of the document is maintained automatically by the system, which reduces human error typically associated with document revisions.

Alternatively, the user may wish to revise one or more content elements in the document. To do so, the user accesses the system via the user interface, and opens the document using the system. The system displays the content elements and the associated data previously selected by the user to generate the document. The user may view each content element and the respective data in aggregate form. The user also may view the respective data of each content element in detail. Optionally, the system generates a new data heap to provide the user with the most up-to-date data associated with the clients previously selected by the user. At this point, the user may modify the content elements in the document, may add and/or remove content elements, or may instruct the system to generate an entirely new document. Modifications involving content elements are flagged within the data of the content elements. Once the user completes the modifications, the content builder regenerates the document and automatically saves the regenerated document as a new version. Additionally, the system automatically saves the regenerated data heap as a new version of the original data heap and attaches the regenerated data heap file to the new version of the document. The system maintains synchronicity between the document and the associated data heap in order to allow a user to view all the relevant data available at the time each version of the document was created. By automatically generating new versions of both the document and the data heap, the system maintains the integrity of the document without requiring manual intervention.

Thus, the system significantly reduces time and human error associated with generating documents that utilize large amounts of data from multiple data sources spread throughout a corporation.

The documents referred to herein may be of any type, including but not limited to, text, presentation, multimedia, etc. Preferably, the documents are business documents with financial data.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be more readily understood from the detailed description presented below considered in conjunction with the attached drawings, of which:

FIG. 1 illustrates a document-generation system, according to an embodiment of the present invention; and

FIG. 2 is a flow chart describing a processing flow of a method for generating a document and maintaining document integrity, according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 illustrates an arrangement of a system 101 for automating the generation of business documents according to an embodiment of the present invention. The system 101 includes a content building application 102, or content builder, and a repository 103 that contains a data map 113, a catalog of content elements 114, and one or more document templates 115. The system 101 also includes one or more APIs 105, 106, 107, which allow the system 101 to interface with multiple sources of data, such as, for example, a Microsoft Access™ database 108, an SQL database 109, or some other database 110. A user may utilize the system at a workstation 111 and access the system 101 through a user interface 112, such as a Web page. A data heap 104 is maintained in a temporary computer-readable memory within the system 101 while the content builder 102 is used to create a document. Although not shown, the system 101 includes a standard microprocessor for executing the content building application and other software applications and routines discussed below.

FIG. 2 illustrates a method for automating the generation of documents according to an embodiment of the present invention. The steps of the method need not be taken in the sequence illustrated, and some steps may be implemented essentially simultaneously. In step S201, a user, such as, for example, the user 111, accesses the system 101 via the user interface 112. For example, if the system is a Web-based system, the user 111 accesses the system 101 through a Web page. The user 111 may enter login information, such as a user identification number and a password. Once the user 111 has accessed the system 101, the user 111 is prompted to select a type of document to be generated, such as a presentation, a word processing (text) document, or a PDF document. The user 111 also is prompted to enter a start date and one or more client identifiers. Clients may be identified individually as well as identified by one or more groups or categories. For example, the user 111 may wish for the system 101 to retrieve all data relevant to clients in the oil and gas industry beginning from the end of the first quarter in 2002. Thus, at step S201, the user 111 enters a start date of 03312002 and an alphanumerical identifier for oil and gas clients.

At step S202, the system 101 receives the user inputs and queries multiple data sources, such as the databases 108, 109, 110, for data corresponding to the inputted date and client identifiers. The system 101 utilizes the data map 113 to determine which databases contain the appropriate data. The data map 113 is pre-constructed by a system administrator and includes the locations of data within a corporation. Thus, the system 101 may determine that data sources 108, 109, 110 may hold all of the data corresponding to the inputted date and client identifiers and retrieves the data from data sources 108, 109, 110 using the applicable APIs 105, 106, 107.

Upon retrieving the corresponding data via the APIs 105, 106, 107, the system 101 creates and stores a data heap 104 in a computer-readable memory, which temporarily stores all of the retrieved data. The data heap 104 is structured according to a set of instructions included in the data map 113. The data map 113 instructs the system 101 to generate the data heap 104 using a hierarchical structure. The inputted start date is at the top of the hierarchy and serves as the root node of the hierarchical structure. Each inputted client (child node) then descends directly from the root node, i.e., the inputted start date. Descending from each child node are data nodes containing all of the data retrieved for each client. These data nodes are referred to herein as attribute nodes. An attribute node may contain the following information: a name, a value, a data source identifier, a date and/or time stamp corresponding to the date and time the attribute was retrieved by the system 101, and one or more flags characterizing the data of the attribute. Thus, the data heap 104 contains all of the data associated with the inputted client identifiers, which has a date no earlier than the start date inputted by the user 111.

At step S203, the system 101 outputs the content elements 114 maintained in the repository 103 to the user 111. The user 111 selects the content elements to be included in the document and instructs the system 101 to build the document. At step S204, the content building application 102 generates the document using the document templates 115 stored in the repository 103. The content building application 102 then generates each selected content element by first locating the corresponding data within the data heap 104 according to the data map 113. Because the data heap 104 is structured according to instructions provided in the data map 113, the location of any data for any content element is found within the data map 113. Additionally, the content building application 102 formats the content element according to instructions stored within the content element. The system 101 then embeds the formatted content elements into the document.

At step S205, the system 101 saves the document and saves the data heap 104 as an XML document. Thus, the system maintains a “snapshot” image of the data heap used to generate the associated document. The system 101 then transmits the document to a destination according to user-inputted instructions.

At step S206, the user 111 may access the document using a business, commercial, or other software application that corresponds to the type of the document created. Preferably, although not required, only one user may access and edit the document at any given time in order to maintain the integrity of the document. For example, if the system 101 generated slides for a presentation, the user 111 may access the document using a presentation software application, such as Microsoft PowerPoint™. Upon doing so, the user 111 may add, remove, and/or edit any unstructured content of the document, where unstructured content is content that is not associated with a content element. Once the user 111 is finished working and attempts to exit the document, the system 101 automatically saves the revised document as a new version. Thus, no content is lost between versions of the document.

At step S207, the user 111 may revise the content elements within the document by accessing the document using the system 101 via the user interface 112. The system 101 provides a list of the content elements presently embedded in the document and the data underlying each content element. Additionally, the system 101 generates a new version of the original data heap 104 associated with the document, so that the user 111 has the most recent data available. The user 111 then may add or remove content elements, and/or may modify the document entirely. In each content element that is removed or modified, the content building application 102 flags the fact within the data of the associated content element.

Once the user 111 completes the modifications to the document, the content building application 102 generates a modified document and prompts the system 101 to save the modified document as a new version of the original document. The content building application 102 also prompts the system to save the new version of the data heap 104 as an attachment. Thus, the system 101 provides an updated “snapshot” image of all the data available to the user 111 while the user 111 was modifying the document. The system 101 then outputs the modified document and the associated data heap file to one or more destinations as instructed by the user 111.

While the present invention has been described with respect to what is presently considered to be the preferred embodiment(s), it is to be understood that the invention is not limited to the disclosed embodiment(s). To the contrary, the invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions. 

1. A system for generating and maintaining a user-modifiable document, comprising: a processor for executing software routines and applications; a memory; and a content building application stored in the memory of the system and executable by the processor, wherein the content building application functions to create an updatable data heap by retrieving data from multiple data sources based on a data map stored in the memory, wherein the system automatically saves the data heap each time the data heap is updated; wherein the content building application functions to generate a data hierarchy from the data in the updatable data heap, wherein the data hierarchy includes a root node corresponding to a start date and one or more first child nodes corresponding to one or more client identifiers; wherein the content building application functions to generate a user-modifiable document from the data in the updatable data heap; wherein the processor attaches the data hierarchy to the user-modifiable document as an XML document; and wherein the system automatically saves the user-modifiable document, separate from the data heap, each time the user-modifiable document is modified.
 2. The system according to claim 1, wherein the content building application uses at least one content element stored in the memory to generate the user-modifiable document.
 3. The system according to claim 2, wherein the at least one content element includes any or all of a content element type, business data and a set of instructions for generating the user-modifiable document.
 4. The system according to claim 1, further comprising one or more second child nodes descending from the one or more first child nodes, wherein the one or more second child nodes correspond to one or more attributes containing data associated with the one or more first child nodes.
 5. The system according to claim 4, wherein data of an attribute includes any or all of a name, a value, a data source identifier, a date stamp, a time stamp, and one or more flags.
 6. The system according to claim 1, wherein, when the user-modifiable document is revised by a user, the processor automatically saves the revised user-modifiable document as a new version.
 7. The system according to claim 6, wherein a revised data hierarchy is attached to the revised user-modifiable document. 